package com.geek.spring.bean;


import org.springframework.stereotype.Component;

/**
 * 组件
 */
@Component
public class CompactDisc2 {

    private String artist = "Oasis";

    private String music = "Stand by Me";

    public void play(String str) {
        System.out.println(str + music + " by " +artist);
    }
}